|
|
 |
|
|
|
|
Me.Print dtDate
Print
Me.Print DateAdd("d", 90, dtDate)
Me.Print DateAdd("ww", 8, dtDate)
Me.Print DateAdd("m", 5, dtDate)
Me.Print DateAdd("m", -6, dtDate)
End Sub |
|
|
|
 |
|
|
|
|
3/24/95
6/22/95
5/19/95
8/24/95
9/24/94 |
|
|
|
|
|
|
|
|
The DateAdd() function uses the same string arguments as the DatePart() function as the first parameter. The 2nd parameter is how many units you wish to add to the 3rd parameter. |
|
|
|
|
|
|
|
|
There are many functions used to convert from one data type to another. Figure 10.3 is the form from the example for this chapter. |
|
|
|
|
|
|
|
|
Figure 10.3
Conversion functions. |
|
|
|
|
|